package vo.uservo;


import java.io.Serializable;
import java.util.Calendar;

import po.userpo.UserID;
import po.userpo.Birthday;
import Enum.Faculty;
import Enum.Gender;
import Enum.UserRole;
import Enum.Hometown;

public class UserVO implements Serializable {
    String name;
    int age;
    Gender gender;
    Birthday birth;
    Hometown hometown;
    UserID userID;
    UserRole userRole;
    
    public UserVO(String n,Gender g,Birthday b,Hometown h,UserID id,UserRole userRole){
    	name=n;
    	age=Calendar.YEAR-b.getYear();
    	gender=g;
    	birth=b;
    	hometown=h;
    	userID=id;
    	this.userRole=userRole;
    }
    public UserID getUserID() {
		return userID;
	}
    public UserRole getRole() {
		return userRole;
	}
    
    public  String getName(){
    	return name;
    }
    
    public int getAge(){
    	return age;
    }
    
    public Gender getGender(){
    	return gender;
    }
    
    public Birthday getBirth(){
    	return birth;
    }
    
    public Hometown getHometown(){
    	return hometown;
    }
}
